package com.nbsaas.boot.order.data.entity;

import com.nbsaas.boot.code.annotation.FormAnnotation;
import com.nbsaas.boot.code.annotation.bean.StoreStateBean;
import com.nbsaas.boot.jpa.data.entity.LongEntity;
import lombok.Data;
import org.hibernate.annotations.Comment;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

@StoreStateBean
@Data
@FormAnnotation(title = "购物车", model = "购物车")
@Entity
@Table(name = "bs_cart")
@org.hibernate.annotations.Table(appliesTo = "bs_cart", comment = "购物车")
public class Cart extends LongEntity {


    @Comment("用户id")
    private Long customerId;

    @Comment("产品id")
    private Long productId;

    @Comment("产品名称")
    private String productName;

    @Comment("加入时候的价格")
    private BigDecimal addPrice;

    @Comment("实际价格")
    private BigDecimal retailPrice;

    @Comment("是否选中")
    private Integer checked;

    @Comment("规格id")
    private Long skuId;

    @Comment("规格名称")
    private String skuName;

    @Comment("产品图片")
    private String productPicUrl;

    @Comment("运费模板")
    private Long freightTemplateId;

}
